﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SMIS.Dals;

namespace SMIS
{
    public partial class FormAddJob : Form
    {
        public FormAddJob()
        {
            InitializeComponent();
        }

        private void FormAddJob_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            string sName = txtName.Text;
            string sDes = txtDes.Text;
            Dal4Job.InsertJob(sName, sDes);
            MessageBox.Show("恭喜你添加工种信息成功！");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
